amd iommu: Fix a xen crash after pci-attach
authorKeir Fraser <keir@xen.org>
Sun, 6 Feb 2011 16:54:01 +0000 (16:54 +0000)
committerKeir Fraser <keir@xen.org>
Sun, 6 Feb 2011 16:54:01 +0000 (16:54 +0000)
commit77c01bba24c0896565834398a689896bcdd33ebe
tree00221f1855ed02f879d95741feccea8e561a4a94
parentb9a9873c2e97a765c5136b223bf8921f3bd40c66
amd iommu: Fix a xen crash after pci-attach

pci-detach triggers IO page table deallocation if the last passthru
device has been removed from pdev list, and this will result a BUG on
amd systems for next pci-attach. This patch fixes this issue.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c